Mule : Mule Endpoints
This page last changed on Jan 19, 2005 by ross.
Endpoints are used to connect to components in the server and external systems or to each other locally or over the network. An Endpoint is a specific channel through which two parties can communicate. A provider can be used to send or receive events from disparate systems, for example, a purchasing component may receive an order request over Http. Once the order has been processed by the component a Jms message may be sent over a topic to notify an auditing system and response sent back over Http. An Endpoint consists of the following elements -
Essentially, an endpoint is a configuration entity used to control how events are sent and received in Mule. Mule also has a notion of 'Transport Providers' or 'Providers' that do the actual work of sending a recieving events over various protocols. Transport ElementsA Transport Provider is in fact a composite of a set of objects used to connect and communicate with the underlying system. The elements of a Transport Provider are -
The following shows how an endpoint and underlying Transport components fit together. Cannot resolve external resource into attachment. Endpoint UsageEndpoints can be configured on various objects in Mule -
Endpoints ScopeEndpoints can have two scopes; Global scope and local scope. Global ScopeAn Endpoint is considered to have Global scope when it is registered on the MuleManager instance or set in the Mule configuration as a <global-endpoint>. Global endpoints can be referenced anywhere in your code. It's important to note that when an endpoint is requested from the UMOManager using the lookupendpoint() method, Mule actually returns a clone of the Endpoint. This allows client code to change any attibutes on the endpoint without affecting other objects in the system that also use the endpoint. The exception to this is the connector which is not cloned and setting properties on the connector at run-time may cause unpredictable results and is not recommended unless the documentation for the Transport says otherwise. Local ScopeThese are endpoints that are configured or set on the objects that have Endpoints, but are not registered with the MuleManager. More InformationFor more information about configuring endpoint see Configuring Endpoints. For reference about Transport Provider implementations see the Transports Guide. |
Document generated by Confluence on Nov 27, 2006 10:27 |